Skip to content

spdm_device_secret_lib_sample: Fix build when GET_KEY_PAIR_INFO_CAP is disabled#3659

Merged
jyao1 merged 1 commit into
DMTF:mainfrom
alistair23:alistair/key-pai-fixup
Jun 23, 2026
Merged

spdm_device_secret_lib_sample: Fix build when GET_KEY_PAIR_INFO_CAP is disabled#3659
jyao1 merged 1 commit into
DMTF:mainfrom
alistair23:alistair/key-pai-fixup

Conversation

@alistair23

Copy link
Copy Markdown
Contributor

Commit 1e16c60 broke builds when
LIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP is not enabled as libspdm_get_key_pair_id_by_slot() isn't defined. Fix the build by guarding calls of libspdm_get_key_pair_id_by_slot().

Fixes: 1e16c60 ("Add slot 4 multi-key example with a distinct responder leaf key")

Comment thread os_stub/spdm_device_secret_lib_sample/read_priv_key_pem.c Outdated
@alistair23 alistair23 force-pushed the alistair/key-pai-fixup branch from 1e98928 to 95ed039 Compare June 22, 2026 23:20
Comment thread os_stub/spdm_device_secret_lib_sample/read_priv_key_pem.c Outdated
…s disabled

Commit 1e16c60 broke builds when
LIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP is not enabled as
libspdm_get_key_pair_id_by_slot() isn't defined. Fix the build by
guarding calls of libspdm_get_key_pair_id_by_slot().

Fixes: 1e16c60 ("Add slot 4 multi-key example with a distinct responder leaf key")
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
@alistair23 alistair23 force-pushed the alistair/key-pai-fixup branch from 95ed039 to 91f2c9a Compare June 23, 2026 05:36
@jyao1 jyao1 merged commit d203233 into DMTF:main Jun 23, 2026
97 checks passed
@alistair23 alistair23 deleted the alistair/key-pai-fixup branch June 23, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants